<template>
    <div class="flex-app-continer">
        <vxe-modal
            :showFooter="false"
            :title="titleInfo"
            ref="modal1"
            width="95%"
            :height="heightTitle"
            :zIndex="10"
            @close="closeSearch"
        >
            <handleDetail @closeSearch="closeSearch" :ADDEDITLOOK="ADDEDITLOOK"></handleDetail>
        </vxe-modal>
    </div>
</template>
<script>
import handleDetail from '@/views/home/handleDetail/index.vue'
export default {
    name: 'matchFlowApplyDialog',
    data() {
        return {
            ADDEDITLOOK:'EDIT',
            titleInfo:'新增发票',
            heightTitle:'100vh',
        }
    },
    components: {
        handleDetail
    },
    methods: {
        closeSearch() {
            this.$refs.modal1.close()
            this.$nextTick(()=>{
                this.$emit('voiceDialogFn',false)
            })
        },
    
        show(type) {
            try {
                if(screen.height>900){
                    this.heightTitle = '80vh'
                }else{
                    this.heightTitle = '100vh'
                }
                this.titleInfo = JSON.parse(sessionStorage.getItem("handleDetailInfo")).titleInfo

            } catch (error) {
                
            }
            this.ADDEDITLOOK = type
            this.$refs.modal1.open()
        },
    },
}
</script>
  <style lang="scss">

</style>